package pers.buyusan.bean;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;
import pers.buyusan.service.HelloService;

@Component
public class ConsumerComponent {
    @Reference
    private HelloService helloService;
    public String sayHello(String name) throws InterruptedException {
        return helloService.sayHello(name);
    }
    public String sayHaHaHa(String name) throws InterruptedException {
        return helloService.sayHaHaHa(name);
    }
    public String sayBye(String name) throws InterruptedException {
        return helloService.sayBye(name);
    }
}
